package com.cgly.medical.mapper;

import com.cgly.medical.domain.China;
import com.cgly.medical.model.ChinaModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program: medical
 * @description:
 * @author: chen di
 * @create: 2022-08-15 15:14
 */
public interface ChinaMapper {

    // 根据id查询China
    China selectById(Integer id);

    // 根据父id查询子China
    List<ChinaModel>  selectByPId(Integer Pid);


    //根据条件查询China:模糊查询
    List<China> selectSomeChina(@Param("id") Integer id, @Param("name") String name);

//    //根据id删除China
//    int deleteChinaById(Integer id);
}